
#ifndef _CITEM_H
#define _CITEM_H

#include <SDL\SDL.h>

#include "defs.h"
#include "CEntity.h"

class CItem : public CEntity {

	private:
		bool visible;
		int itemType;

	public:
		CItem();

		void setItemType(int type);
		int  getItemType();
		void setVisible(bool);
		bool isVisible();
		bool checkCollisionPlat(float newX, float newY);
		void randomItem();

		void onRender(SDL_Surface *destSurface);
		void onLoop();
		void onMove();
		//void onCleanup();
};

#endif